import { defineStore } from 'pinia';
import { getCityAll } from '@/services/index.js';
const useCityStore = defineStore('city', {
  state: () => ({
    allCities: [],
    currentCity: {
      cityName: '深圳',
    },
  }),
  actions: {
    async fetchAllCitiesData() {
      const res = await getCityAll();
      this.allCities = res.data;
    },
  },
});
export default useCityStore;
